Skip to content

fix(ci): harden release supply chain#3

Merged
altaywtf merged 6 commits into
mainfrom
fix/release-supply-chain-hardening
May 8, 2026
Merged

fix(ci): harden release supply chain#3
altaywtf merged 6 commits into
mainfrom
fix/release-supply-chain-hardening

Conversation

@altaywtf
Copy link
Copy Markdown
Member

@altaywtf altaywtf commented May 8, 2026

Summary

Harden the CLI release pipeline against the three validated supply-chain findings: mutable release actions, unsafe backfill tag interpolation, and unchecked SEA runtime downloads.

Changed

  • Replace voidzero-dev/setup-vp@v1 in release-impacting workflows with pinned actions/setup-node, corepack enable, and pnpm install --frozen-lockfile
  • Pin all GitHub Actions used by release, upload, and Homebrew jobs to full commit SHAs
  • Validate manual backfill release tags, use actions/checkout ref, and pass TAG_NAME to PowerShell through env
  • Rename scripts/build-sea.mjs to scripts/build-sea.mts and verify Node runtime archive checksums via SHASUMS256.txt before extraction

Risks

  • Action SHA pins require deliberate future update maintenance
  • The SEA build now depends on Node release checksum availability before extracting runtime archives
  • Workflow behavior should be confirmed by GitHub Actions on Linux, macOS, and Windows runners

Verification

  • pnpm run verify
  • pnpm run build:sea && pnpm run verify:sea
  • node --check scripts/build-sea.mts
  • targeted security checks for no setup-vp, no unsafe tag_name shell/PowerShell interpolation, full-SHA action pins, and SEA checksum controls
  • YAML parse check for both workflow files
  • pre-push vp gate passed

Complexity

Neutral. The workflow setup is more explicit, but the release trust boundary is clearer and the SEA checksum check is localized to the runtime download path.

Copilot AI review requested due to automatic review settings May 8, 2026 17:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@altaywtf altaywtf merged commit 56161a4 into main May 8, 2026
6 checks passed
@altaywtf altaywtf deleted the fix/release-supply-chain-hardening branch May 8, 2026 21:40
@putio-release-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants